Open topic with navigation
Comments
Documentation Symbols
Syntax samples
#
//
/*...*/
Components
#
The pound sign signals the start of a one-line comment. MedModel will ignore any characters on the rest of the line.
//
Two forward slashes signal the start of a one-line comment. MedModel will ignore any characters on the rest of the line. This symbol works exactly the same as the # sign.
/*...*/
A slash followed by an asterisk signals the start of a multi-line comment. MedModel will ignore all characters after the “/*” until it finds an asterisk followed by a slash, “*/”. Use this type of comment for long explanations and to prevent MedModel from executing long portions of logic during debugging. Comments using // or # may be nested inside multi-line comments.
Description
Comments are notes to the modeler inside blocks of logic. MedModel ignores them, but they can be particularly useful to explain logic when more than one person will be using a model.
Valid In
Any logic.
Example
The logic below has several notes to explain it. Additionally, MedModel ignores the ELSE statement and the ELSE statement’s block.
IF Patient_Type = 3 THEN
{//Patient type is stored in attribute Patient_Type
Get MD # Get a Doctor only if patient is type 3
WAIT Attr1
}
/* ELSE
{ //Start Treatment by Nurse
GET NURSE
INC Var1
WAIT Attr2
} */
|
© 2012 ProModel Corporation • 556 East Technology Avenue • Orem, UT 84097 • Support: 888-776-6633 • www.promodel.com |